import { createApp } from 'vue'
import { setupStore } from '@/store'
import { router, setupRouter } from '@/router'
import { setupGlobDirectives } from '@/directives'
import Antd from 'ant-design-vue'

import App from './App.vue'

import '@/styles/common.less'

import '@/permission'

const app = createApp(App)

// 配置 store
setupStore(app)

// 配置路由
setupRouter(app)

// 注册全局指令
setupGlobDirectives(app)

app.use(Antd)

app.mount('#app')
